<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
        <meta name="keywords" content=""/>
        <meta name="description" content=""/>
        <meta http-equiv="X-UA-Compatible" content="IE=7"/>
        <link rel="stylesheet" type="text/css" href="css/reset.css" />
        <link rel="stylesheet" type="text/css" href="css/myresume.css" />
    </head>
    <body>
        <div id="interactive-box" class="dialog" style="min-width: 770px; z-index: 99999; left: 247px; top: 1287px; width: auto;">
            <div class="top"><div class="corner"></div></div><div class="body">
                <div class="client">
                    <form method="post" action="?c=MyResume&a=TrainAdd">
                        <input type="hidden" value="<?= $uid ?>" name="userid">
                        <input type="hidden" value="<?=$id?>"name="id" />
                        <table width="100%" class="form">
                            <colgroup><col width="100">
                                <col width="12">
                                <col width="*">
                            </colgroup><tbody><tr>
                                    <td class="label">培训名称:</td>
                                    <td class="aster">*</td>
                                    <td class="input">
                                        <input type="text" maxlength="50" value="<?php echo empty ($id) ? '' : $dataInfo['name']; ?>" name="name" class="text error-input" validator="require">
                                        <span rel="trainingname-input" class="error">请填写培训名称</span></td>
                                </tr>
                                <tr>
                                    <td class="label">机构:</td>
                                    <td></td>
                                    <td class="input">
                                        <input type="text" value="<?php echo empty ($id) ? '' : $dataInfo['institution']; ?>" maxlength="80" name="institution" class="text" id="institution-input">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label">时间:</td>
                                    <td class="aster">*</td>
                                    <td class="input">
                                        <input type="hidden" value="" name="startDate" id="training-startdate-input">
                                        <select id="training-startdate-input-year" name="startyear">
                                            <option value="0">年份</option>
                                            <?php
                                                $thisyear = date("Y");
                                                for($year=1994; $year<=$thisyear; $year++){
                                                    if($dataInfo['startyear'] == $year){
                                                        echo '<option value="'.$year.'" selected>'.$year.'</option>';
                                                    }else{
                                                        echo '<option value="'.$year.'">'.$year.'</option>';
                                                    }
                                                }
                                            ?>
                                        </select> 年
                                        <select id="training-startdate-input-month" name="startmonth">
                                           <option value="0">月份</option>
                                           <?php
                                                for($month=1; $month<=12; $month++){
                                                    if($dataInfo['startmonth'] == $month){
                                                        echo '<option value="'.$month.'" selected>'.$month.'</option>';
                                                    }else{
                                                        echo '<option value="'.$month.'">'.$month.'</option>';
                                                    }
                                                }
                                            ?>
                                        </select> 月
                                        至
                                        <input type="hidden" value="" name="endDate" id="training-enddate-input">
                                        <select id="training-enddate-input-year" name="endyear" <?php if($dataInfo['tonow'] == 1) echo 'disabled'; ?>>
                                            <option value="0">年份</option>
                                            <?php
                                                $thisyear = date("Y");
                                                for($year=1994; $year<=$thisyear; $year++){
                                                    if($dataInfo['endyear'] == $year){
                                                        echo '<option value="'.$year.'" selected>'.$year.'</option>';
                                                    }else{
                                                        echo '<option value="'.$year.'">'.$year.'</option>';
                                                    }
                                                }
                                            ?>
                                        </select> 年
                                        <select id="training-enddate-input-month" name="endmonth" <?php if($dataInfo['tonow'] == 1) echo 'disabled'; ?>>
                                            <option value="0">月份</option>
                                           <?php
                                                for($month=1; $month<=12; $month++){
                                                    if($dataInfo['endmonth'] == $month){
                                                        echo '<option value="'.$month.'" selected>'.$month.'</option>';
                                                    }else{
                                                        echo '<option value="'.$month.'">'.$month.'</option>';
                                                    }
                                                }
                                            ?>
                                        </select> 月
                                        <input type="checkbox" id="tonow" value="present" name="tonow" class="checkbox"<?php if($dataInfo['tonow'] == 1) echo 'checked';?>>
                                        <label for="training-enddate-input-present-checkbox" class="checkbox">至今</label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label">内容:</td>
                                    <td></td>
                                    <td class="input">
                                        <textarea name="descr" class="floatleft" id="resume-training-desc-textarea"><?php echo empty ($id) ? '' : $dataInfo['descr']; ?></textarea>
                                        <p class="floatleft"><span class="error" id="error-c4517e4f-3952-4be8-9c81-8290061b98db"></span></p>
                                        <div class="clear">（限250字）</div>
                                    </td>
                                </tr>
                            </tbody></table>
                        <div class="error">&nbsp;</div>
                        <div class="inputdiv_btn">
                            <button class="big-default" type="submit"><span><span>确定</span></span></button>
                            <button type="button" class="normal" onclick="self.parent.tb_remove()"><span><span>取消</span></span></button>
                        </div>
                        <div class="bottom"><div class="corner"></div></div>
                    </form>

                </div>

            </div>

        </div>
        <script language="javascript" src="js/jquery.js"></script>
        <script language="javascript" src="js/validator.js"></script>
        <script>
            Zvalidator.init();
        </script>
    </body>
</html>
